import com.dao.StudentDao;
import com.pojo.Student;
import com.util.MyBatisUtil;
import org.junit.Test;

import java.util.List;

public class MyBatisMTM {

    @Test
    public void selectAll(){
        StudentDao mapper = MyBatisUtil.getMapper(StudentDao.class);

        List<Student> students = mapper.selectAll();

        for (Student student : students) {
            System.out.println(student);
        }
    }

}
